<template>
  <span>{{ supplier }}</span>
</template>
<script>
import { getSupplier } from '@/api/supplier'

export default {
  data() {
    return { supplier: null }
  },
  beforeMount() {
    getSupplier(this.params.value)
      .then(response => {
        this.supplier = response.Data.Name
      })
      .catch(error => {
        console.log(error)
        this.supplier = '未知错误'
      })
  }
}
</script>
